import { createApp } from 'vue'
import { createRouter, createWebHistory } from 'vue-router'
import App from './App.vue'
import AddressPage from './pages/AddressPage.vue'
import AmountPage from './pages/AmountPage.vue'
import ConfirmPage from './pages/ConfirmPage.vue'
import Qrcode from './pages/Qrcode.vue'

const routes = [
  { path: '/', redirect: '/address' },
  { path: '/address', component: AddressPage },
  { path: '/amount', component: AmountPage },
  { path: '/confirm', component: ConfirmPage },
  { path: '/qrcode', component: Qrcode },
]

const router = createRouter({
  history: createWebHistory(),
  routes
})

const app = createApp(App)
app.use(router)
app.mount('#app')